<template>
  <header>
    <RouterLink to="/">Home</RouterLink>
    <RouterLink to="/about">About</RouterLink>
    <RouterLink to="/test">Test</RouterLink>
  </header>

  <RouterView />
</template>

<script setup>
import { RouterLink, RouterView } from 'vue-router'
</script>

<style scoped>
header {
  line-height: 1.5;
  max-height: 100vh;
}

header {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: darkcyan;
}

header a.router-link-exact-active {
  color: var(--color-text);
}

header a.router-link-exact-active:hover {
  background-color: transparent;
}

header a {
  display: inline-block;
  padding: 0 1rem;
  border-left: 1px solid var(--color-border);
}

header a:first-of-type {
  border: 0;
}
</style>
